//
// Created by jm on 2022/1/12.
//
#include "zlogger/asynctimer.h"
#include "thread"
#include "chrono"
double sleep10(){
  AL_FUNCTION_TIMER
  double res = 1;
  for (long long  i = 0; i < 1000000; ++i) {
    res =( res + 100000) /2;
  }
  std::this_thread::sleep_for(std::chrono::microseconds (1));
  AL_VARIABLE("res", res);
  return res;
};
int main(){
  AsyncLogger::GetInstance()->Initialize();
  while (true){
    sleep10();
  }
  return 0 ;
}